package com.chencs.app.lianmeng.mapper;

import com.chencs.vo.biz.lianmeng.*;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LMMemberMapper {



    LmMember findUserByMobile(String mobile);

    LmMember findUserByUid(String uid);

    LmMember findUserByWXId(String wx_id);

    void userRegister(LmMember member);

    void createAccount(LMAccount account);

    LmAdPosition findPid();

    /**
     * 取出用户pid
     * @param uid
     * @return
     */
    LmAdPosition findPidByUid(String uid);

    /**
     * 修改广告位
     * @param lmPid
     */
    void updatePid(LmAdPosition lmPid);

    void createPayAccount(LmPay_account lmPay_account);

    LmPay_account getAccountByUid(String uid);

    LMAccount getLmAccount(String uid);

    void updateAccount(LMAccount account);

    /***
     * 获取一级团队
     * @param invitation
     * @return
     */
    List<LmTeam> getTeamLevel1(String invitation);

    /***
     * 获取一级团队
     * @param invitation
     * @return
     */
    List<LmTeam> getTeamLevel2(String invitation);
}
